package com.yc.log;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;



public class C1 {

    public static final Logger LOGGER = LoggerFactory.getLogger(C1.class);
    //2023-03-16 15:39:34,310 [INFO] [main] 类对象 [C1.java : 15] ------info日志---------
    //2023-03-16 15:40:21,362 [INFO] [main] com.yc.log.C1 [C1.java : 17] ------info日志---------
    //2023-03-16 15:41:04,759 [INFO] [main] com.yc.log.C1 [C1.java : 18] ------info日志---------

    //log4j
    public void m1() {
//        LOGGER.debug("------debug日志---------");
        LOGGER.info("------info日志---------");
//        LOGGER.error("------error日志---------");
    }

    //
    public void m2() {
//        java.util.logging.Logger logger =
    }

    public static void main(String[] args) {
        C1 c = new C1();
        c.m1();
    }
}
